<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width,initial-scale=1.0" />
        <title>named workers</title>
        <script type="module" src="../../../dist/core.js"></script>
    </head>
    <body>
        <script type="mpy" async>
            from pyscript import workers

            await (await workers["mpy"]).greetings()
            await (await workers["py"]).greetings()
        </script>
        <script type="mpy" worker name="mpy">
            def greetings():
                print("micropython")

            __export__ = ['greetings']
        </script>
        <script type="py" worker name="py">
            def greetings():
                print("pyodide")

            __export__ = ['greetings']
        </script>
    </body>
</html>
